package com.example.bookstore;

import java.util.List;

public class Order {
    private int id;
    private List<Book> bookList;
    private int size;
    private double price;
    private String books;

    public Order() {
    }

    public String getBooks() {
        return books;
    }

    public void setBooks(String books) {
        this.books = books;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public List<Book> getBookList() {
        return bookList;
    }

    public void setBookList(List<Book> bookList) {
        this.bookList = bookList;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public Order(int id, List<Book> bookList, int size, double price) {
        this.id = id;
        this.bookList = bookList;
        this.size = size;
        this.price = price;
    }

    @Override
    public String toString() {
        return "Order{" +
                "id=" + id +
                ", bookList=" + bookList +
                ", size=" + size +
                ", price=" + price +
                '}';
    }
}
